package com.cc.blog.security.exception;

import org.springframework.security.core.AuthenticationException;

/**
 * 用户名或者密码为空异常
 * <br/>继承自 AuthenticationException，只有该类型异常，才能被后续自定义的认证失败处理器捕获到
 * @Author cc
 * @Date 2023/10/25 17:06
 */
public class UsernameOrPasswordNullException extends AuthenticationException {

    public UsernameOrPasswordNullException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public UsernameOrPasswordNullException(String msg) {
        super(msg);
    }
}
